package com.example.social.me.project;

import exportedlibrary.Facebook_A;
import exportedlibrary.Planet_X;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class TapWidgetActivity extends TabActivity {
/*
 *  <receiver android:name="BackService.BroadCastReceiver_B"
                android:enabled="true"
                android:exported="false"
                android:label="LocationService_dong">
            <intent-filter >
               <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>(non-Javadoc)
 * @see android.app.ActivityGroup#onCreate(android.os.Bundle)
 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_tabhost);
		
		Resources res = getResources();
		TabHost tabHost = getTabHost();
		TabHost.TabSpec spec;
		Intent intent;
		
		intent = new Intent(this, Map_Activity.class);
		spec = tabHost.newTabSpec("simple")
							.setIndicator("주변 보기", res.getDrawable(android.R.drawable.ic_delete))
							.setContent(intent);
		tabHost.addTab(spec);
		
		intent = new Intent(this, Planet_X.class);
		spec = tabHost.newTabSpec("simple")
		.setIndicator("gg", res.getDrawable(android.R.drawable.ic_delete))
		.setContent(intent);
		tabHost.addTab(spec);

		intent = new Intent(this, TapWidgetActivity_inside.class);
		spec = tabHost.newTabSpec("map")
		.setIndicator("SoMe", res.getDrawable(android.R.drawable.ic_delete))
		.setContent(intent);
		tabHost.addTab(spec);
		
		tabHost.setCurrentTab(1);
	}
	
}
